﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using ICDA.Models.Entity;

namespace ICDA.Web.Models
{
    public class LeaveModel
    {
        public int ID { get; set; }
        public string UserID { get; set; }

        [Required]
        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:d}")]
        [Display(Name = "Leave Start Date:")]
        public DateTime LeaveStartDate { get; set; }

        [Required]
        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:d}")]
        [Display(Name = "Leave End Date:")]
        public DateTime LeaveEndDate { get; set; }

        [Required]
        [Display(Name = "Leave Type :")]
        public bool LeaveType { get; set; }

        [Required]
        [Display(Name = "Day :")]
        public bool DayType { get; set; }

        [Required]
        [Display(Name = "Leave/Training Name :")]
        public string LeaveName { get; set; }

        public List<LeaveModel> LeaveM { get; set; }
    }
}